module.exports = app => {
    const learn = require("../controllers/learning_route.controller");
    
    var router = require("express").Router();

    router.post('/addOne',learn.addOne);
    router.post('/generate',learn.generateRoute);

    router.post('/addProcess',learn.addProcess);
    router.post('/basic',learn.findBasic);
    router.post('/basicName',learn.findBasicName);
    router.post('/target',learn.findTarget);
    router.post('/targetName',learn.findTargetName);

    router.post('/getNode',learn.findNodes);
    router.post('/getEdges',learn.findEdges);
    
    app.use('/api/learn', router);
}